<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<img v-show="isShow" src="img/bg1.jpg" />
			<button @click="isPicShow">切换照片的状态</button>
		</div>
	</body>
	<script>
		var app=new Vue({
			el:"#app",
			data:{
				isShow:false
			},
			methods:{
				isPicShow:function(){
					this.isShow=!this.isShow
				}
			}
		})
	
	</script>
</html>
